﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace TSites.Administrator.Models
{
	public class ChangePasswordViewModel
	{
		[Display(Name="Current Password")]
		[Required]
		public string CurrentPassword { get; set; }

		[Display(Name = "New Password")]
		[Required]
		[StringLength(255, MinimumLength = 4, ErrorMessage = "The password must greater than or equals to 4 characters")]
		public string NewPassword { get; set; }

		[Display(Name = "Confirmation Password")]
		[Required]
		[StringLength(255, MinimumLength = 4, ErrorMessage = "The password must greater than or equals to 4 characters")]
		[Compare("NewPassword", ErrorMessage = "The password and confirmation password do not match")]
		public string ConfirmPassword { get; set; }
	}
}